#!/bin/bash 

for i in beijing tianjin shanghai nanjing
do
	echo hello $i
done

echo "-----------------------"

for i in {1..10}
do
	echo hello $i
done

echo "-----------------------"

for i in `seq 1 10`
do
	echo hello $i
done

echo "-----------------------"

for i in `seq 1 3 10`
do
	echo hello $i
done

echo "-----------------------"

#for i in `ls`
for i in $(ls)
do
	#echo $i
	chmod u+x $i
done

echo "-----------------------"
# 省略in和单词列表的for循环
# 此时 单词列表的值来自于执行脚本时 命令行传的参数
for i
do
	echo "$i"
done

